package exercise03;

import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class UserController {
    @Resource(name = "userServiceI")
    private UserService us;
    public String toLogin(User u){
        boolean b = us.toLogin(u);
        return "登录"+(b?"成功":"失败");
    }
}
